// lib/app/data/datasources/user_remote_data_source.dart
import 'package:flutter_clean_architecture/app/domain/models/user.dart';

abstract class UserRemoteDataSource {
  Future<List<User>> getUsers();
}

class UserRemoteDataSourceImpl implements UserRemoteDataSource {
  @override
  Future<List<User>> getUsers() async {
    // 这里是模拟数据，实际应用中应该是调用 API 获取数据
    List<User> mockUsers = [
      User(id: '1', name: 'Alice', age: 25),
      User(id: '2', name: 'Bob', age: 30),
      User(id: '3', name: 'Charlie', age: 22),
    ];
    return Future.delayed(const Duration(seconds: 2), () => mockUsers);
  }
}
